/*
* created by Administrator on 2018/12/11
* 好的代码像粥一样,是得用时间和精力熬的。
*/
import request from './request';
// 登录
const login = data => request.post('/login', data);
//  注册
const register = data => request.get('/reg', { params: data });
// 获取首页数据
const getIndexData = data => request.post('/index', data);
export default { login, register, getIndexData };
